﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BehaviorSystem
{
    public class BehaviorSystemFacade : Singleton<BehaviorSystemFacade>,IInitable, IBehaviourManager
    {
        //Dictionary<IBehaviorMatcher, IBehaviorGroup> BehaviorAgents = new Dictionary<IBehaviorMatcher, IBehaviorGroup>();

        //IBehaviorAgent agent;

        public void Init()
        {

        }
        #region 行为系统

        BehaviourManager manager = new BehaviourManager();
        public void InitBehaviourTick()
        {
            manager.InitBehaviourTick(); 
        }

        public void RegisterBehaviourAgent(IBehaviorAgent agent)
        {
            manager.RegisterBehaviourAgent(agent);
        }

        public void Tick()
        {
            //agent.Tick();
            //foreach (var item in BehaviorAgents)
            //{
            //    item.Value
            //}
        }

        #endregion
    }
}
